.comment.box.light-gray{:id => dom_id(comment)}
  .avatar= image_tag comment.user.avatar.url(:small)
  %p.meta
    %span= link_to comment.user.full_name, "#"
    %br/
    %span.date= l comment.created_at
  .text
    = comment.body.html_safe
  .rating
    %span Рейтинг:
    = html_tag_for_rating comment
    - if can?(:rating) && comment.user != current_user
      = link_for_change_rating(comment, :down)
      = link_for_change_rating(comment, :up)
  - if can?(:comment) && comment.user == current_user
    = link_to_delete_comment comment